﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace timetabling.core
{
    public class Resource: Basic
    {
        #region variables miembro

        private IList<Subject> subjects = null;
        private IList<Classroom> classrooms = null;

        #endregion




        /// <summary>
        /// Nombre del recurso
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Centro al que pertenece el recurso
        /// </summary>
        public Center Center { get; set; }


        /// <summary>
        /// Tipo de Recurso al que corresponde el recurso
        /// </summary>
        public ResourceType ResourceType { get; set; }


        /// <summary>
        /// Lista de aulas del recurso.
        /// </summary>
        public IList<Classroom> Classrooms
        {
            get
            {
                if (classrooms == null)
                {
                    classrooms = new List<Classroom>();
                }
                return classrooms;
            }
            set
            {
                classrooms = value;
            }
        }

        /// <summary>
        /// I=Intefaz.
        /// Lista de asignaturas del recurso
        /// </summary>
        public IList<Subject> Subjects
        {
            get
            {
                if (subjects == null)
                {
                    subjects = new List<Subject>();
                }
                return subjects;
            }
            set
            {
                subjects = value;
            }
        }



    }
}
